CMAKE_MINIMUM_REQUIRED(VERSION 3.16)
SET(PROJECT_NAME Carp)
PROJECT(${PROJECT_NAME})

SET(CMAKE_CXX_STANDARD 20)
#SET(CMAKE_CXX_FLAGS "-fno-elide-constructors")

#可执行文件生成路径
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${PROJECT_SOURCE_DIR}/build)

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)

FILE(GLOB_RECURSE SOURCE_FILES "${PROJECT_SOURCE_DIR}/src/*.cpp")
ADD_EXECUTABLE(${PROJECT_NAME} ${SOURCE_FILES})